package com.ly.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.ly.bean.Bis_beauty_config;
import com.ly.mapper.BeautyConfigMapper;

@Service
@Transactional
public class BeautyConfigService implements BeautyConfigServiceImpl{
	@Autowired
	private BeautyConfigMapper mapper;
	/**
	 * 查询所有
	 * @param config
	 * @return
	 */
	@Transactional(propagation=Propagation.REQUIRED)
	@Override
	public List<Bis_beauty_config> querybeautyconfig(Bis_beauty_config config){
		return mapper.querybeautyconfig(config);
	};
	/**
	 * 删除
	 * @param config_id
	 */
	@Transactional(propagation=Propagation.REQUIRED)
	@Override
	public void del(Integer config_id){
		mapper.del(config_id);
	}
	/**
	 * 根据id查询一条记录
	 * @param config_id
	 * @return
	 */
	@Transactional(propagation=Propagation.REQUIRED)
	@Override
	public Bis_beauty_config querybyid(Integer config_id){		
		return mapper.querybyid(config_id);
	};
	/**
	 * 修改
	 * @param config
	 */
	@Transactional(propagation=Propagation.REQUIRED)
	@Override
	public void updateByKey(Bis_beauty_config config){
		mapper.updateByKey(config);
	};
	/**
	 * 添加
	 * @param config
	 */
	@Transactional(propagation=Propagation.REQUIRED)
	@Override
	public void insertconfig(Bis_beauty_config config){
		mapper.insertconfig(config);
	};
	/**
	 * 查询总条数
	 * @return
	 */
	@Transactional(propagation=Propagation.REQUIRED)
	@Override
	public Integer querycount(){		
		return mapper.querycount();
	}
}
